<!DOCTYPE html>
<html class="no-js responsive-760" lang="zh-CN" >
<head>
<meta charset="utf-8">
<meta name="keywords" content="Bidcms,微信商城,粉丝营销,微信商城运营" />
<meta name="description" content="Bidcms是帮助商家在微信上搭建微信商城的平台，提供店铺、商品、订单、物流、消息和客户的管理模块，同时还提供丰富的营销应用和活动插件。" />
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="cleartype" content="on">
<!-- dns prefetch -->

<link rel="icon" href="${webRoot}/static/v2/image/favicon.ico" />
<title><?php echo $pagetitle;?></title>
<!-- _global -->
<script>  
var _global ='${global.base}';
_global.url=''${global.url}'';
_global.query_path="/show/goods";
_global.module="show";
_global.controller="show_controller";
_global.action="goods_action";
window.UEDITOR_HOME_URL = _global.url.base + "/static/v2/vendor/ueditor/dist/";

</script>


<!-- meta viewport -->
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

<!-- CSS -->
<link rel="stylesheet" href="${webRoot}/static/v2/build_css/stylesheets/wap/base.css" >    
<link rel="stylesheet" href="${webRoot}/static/v2/build_css/stylesheets/wap/projects/showcase.css" >    
<link rel="stylesheet" href="${webRoot}/static/v2/build_css/stylesheets/wap/pages/showcase/goods.css" >    
</head>

<body class=" body-fixed-bottom">
<!-- container -->
<div class="container wap-goods internal-purchase">
      
<div class="content js-mini-height">
<div class="content-body">

<div class="js-image-swiper custom-image-swiper ">
	<div class="swiper-container">
		<div class="swiper-wrapper">

			<?php foreach($picture as $key=>$val){?>
			<div class="swiper-slide">
				<a class="js-no-follow" href="javascript:;">
				<img class='goods-main-photo' src="<?php echo $val['url'];?>"/>
				</a>
			</div>
			<?php }?>

		</div>
	</div>
	<div class="swiper-pagination">
		<span class="swiper-pagination-switch swiper-active-switch"></span>
		<span class="swiper-pagination-switch"></span>
	</div>
</div>
<!-- 公用商品名和价格 -->
<div class="goods-header">
<h2 class="title"><?php echo $info['title'];?></h2>
<div class="goods-price">
	<div class="current-price">
		<span>￥&nbsp;</span><i class="js-goods-price price"><?php echo $min==$max?$min:$min.'-'.$max;?></i>
	</div>
	</div>
</div>

<!-- 内部购买 -->
<hr class="with-margin" />
<div class="sku-detail adv-opts" style="border-top:none;">
<div class="sku-detail-inner adv-opts-inner">
	<?php foreach($arr_sku as $k=>$v){?>
	<dl>
		<dt><?php echo $v['k'];?>：</dt>
		<dd><?php foreach($v['v'] as $key=>$val){?><?php echo $val['name'];?>、<?php }?></dd>
	</dl>
	<?php }?>
	<dl>
	<dt>剩余：</dt>
	<dd><?php echo $info['total_stock'];?></dd>
	</dl>
	<dl>
	<dt>运费：</dt>
	<dd><?php echo $info['postage']>0?$info['postage']:'免运费';?></dd>
	</dl>
</div>
<div class="qrcode-buy">
	<a href="javascript:;" class="js-qrcode-buy btn btn-orange-dark butn-qrcode">立即购买</a>
</div>
</div>

	<div class="js-components-container components-container">

<div class="custom-store">
<a class="custom-store-link clearfix" href="${webRoot}/index.php?con=show">
<div class="custom-store-img"></div>
<div class="custom-store-name"><?php echo $shop['shop_name'];?></div>
<span class="custom-store-enter">进入店铺</span>
</a>
</div>
<div class="custom-recommend-goods js-custom-recommend-goods hide clearfix">
<div class="custom-recommend-goods-title">
<a class="js-custom-recommend-goods-link" href="">推荐商品</a>
</div>
<ul class="custom-recommend-goods-list js-custom-recommend-goods-list clearfix">
</ul>
</div>
</div>

<div class="js-bottom-opts bottom-opts">
<div class="bottom-opts-inner">
		<div class="opt-wrapper">
	<div class="opt-wrapper-inner" style="padding:5px;">
		<div class="opt-actions">
			<a href="javascript:;" class="js-buy-it btn btn-orange-dark btn-block font-size-14 btn-block-small butn-buy">立即购买</a>
			<a href="javascript:;" class="js-add-cart btn btn-yellow btn-block font-size-14 btn-block-small butn-buy">加入购物车</a>
		</div>
	</div>
</div>
</div>
</div>
</div>
<div class="modal modal-login js-modal-login">
<div class="login">
<div class="login-inner">
<form class="js-login-form" method="GET" action="${webRoot}/models/buyer/auth/login.php">
		<h2 class="js-login-title form-title big">
			<span>请先登录</span>
		</h2>
	
	<h3 class="sub-title">登录后更方便的查询记录和售后服务</h3>
	<fieldset>
		<label class="form-row form-text-row">
			<span class="form-text-label width-25">手机号码</span>
			<input type="tel" name="phone" maxlength="11" class="js-login-phone form-text-input" placeholder="请填写真实手机号" value="" />
		</label>
		<label class="form-row form-text-row">
			<span class="form-text-label width-25">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码</span>
			<input type="password" name="password" autocomplete="off" class="js-login-pwd form-text-input" placeholder="请设置您的密码" />
		</label>
	</fieldset>
	<div class="action-container">
		<button type="submit" class="btn btn-green btn-block">下一步</button>
	</div>
	<div class="action-links">
		<a href="javascript:;" class="js-login-cancel login-cancel">取消</a><span>|</span>
		<a class="js-login-mode" data-login-mode="signup" href="javascript:;">注册帐号</a><span>|</span>
		<a href="" class="js-forget-password forget-password">忘记密码？</a>
	</div>
</form>
</div>
</div>
</div>                       		
<?php include bidcms_template('global_sidebar');?>


</div>        
<?php include bidcms_template('global_copyright');?>
</div>

<!-- JS -->
<script src="${webRoot}/static/v2/vendor/jquery-2.0.3.min.js" ></script>   
<script src="${webRoot}/static/v2/build/wap/base.js" ></script> 
<script id='tmpl-sku' type='text/template'>
	<div class="goods-header layout-title sku-box-shadow">
		<div class="layout-title name-card sku-name-card">
		<div class="thumb"><img src="<?php echo $picture[0]['url'];?>" alt=""></div>
		<div class="detail goods-base-info clearfix">
			<p class="title c-black ellipsis"><?php echo $info['title'];?></p>
			<div class="goods-price clearfix">
				<div class="current-price pull-left c-black">
					<span class="price-name pull-left font-size-14 c-orange">￥</span><i class="js-goods-price price font-size-18 vertical-middle c-orange"><?php echo $info['price'];?></i>
				</div>
			</div>
		</div>
		<div class="js-cancel sku-cancel">
			<div class="cancel-img"></div>
		</div>
		</div>
	</div>

	<div class="adv-opts layout-content">
	<div class="goods-models js-sku-views"></div>
	<div class="confirm-action content-foot"></div>
	</div>
</script>    

<script src="${webRoot}/static/v2/vendor/u_b.js" ></script>
<script src="${webRoot}/static/v2/build/wap/showcase/sku.js" ></script>        
<script src="${webRoot}/static/v2/build/wap/swiper/main.js" ></script>  
<script id="tmpl-side-qrcode" type="text/template">
	<div class="section-detail">
		<h3 class="shop-detail">手机扫码购买</h3>
		<% if(type === 'url') { %>
		<p class="text-center weixin-title">微信“扫一扫”立即购买</p>
		<% } else if (type === 'weixin') { %>
		<p class="text-center weixin-title">微信“扫一扫”关注购买</p>
		<% } %>
		<p class="text-center qr-code">
			<img width="158" height="158" src="<%=img %>">
		</p>
	</div>
</script>
<script src="${webRoot}/static/v2/build/wap/showcase/index.js" ></script>  

<script src="${webRoot}/static/v2/build/wap/showcase/goods.js" ></script>    
<a id="global-cart" class="global-cart-wrap hide not-empty" href="index.php?con=show&act=cart">
</a>
<script>
window.refreshCartIcon = function(){
!!$ && $.ajax({
url: window._global.url.www + '/trade/cart/count.php',
type: 'GET',
timeout: 5000,
dataType : "json",
success: function(resp) {
	if(parseInt(resp.code)===0) {
		var count = parseInt(resp.data);
		if(count>0) {
			$('#global-cart').removeClass('hide');
		} else {
			$('#global-cart').addClass('hide');
		}
	}
}
});
};
refreshCartIcon();
</script>
</body>
</html>